package com.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;



public interface UserDao {
	public Map<String,Object> query(@Param("account")String account);
	
	public Map<String,Object> queryall(@Param("account")String account,@Param("password")String password);
	
	public void add(
    @Param("account")String account,
	@Param("password")String password,
	@Param("account")String nickname,
	@Param("reg_date")String reg_date
	);
	
	public void addmoneyIn(
			@Param("user_id")String user_id,
		    @Param("place")String place,
			@Param("kind")String kind,
			@Param("money_in")String money_in,
			@Param("remark")String remark,
			@Param("date_time")String date_time
			);
	
	public void addmoneyOut(
			@Param("user_id")String user_id,
		    @Param("place")String place,
			@Param("kind")String kind,
			@Param("money_out")String money_out,
			@Param("remark")String remark,
			@Param("date_time")String date_time
			);
	
	public Map<String,Object> queryuser(@Param("id")String userId);
    
	public Map<String,Object> query_money(@Param("user_id")String user_id);

    public List<Map> queryJQI(@Param("user_id")String user_id);
    
    public List<Map> queryJQO(@Param("user_id")String user_id);
	
    public Map<String, Object> queryid();
	
    public Map<String, Object> query_money_yue(@Param("user_id")String user_id);
	
    public List<Map> query_money_kindin(@Param("user_id")String user_id);
	
    public List<Map> query_money_kindout(@Param("user_id")String user_id);
    
    public List<Map> query_result(
    		@Param("user_id")String user_id,
    		@Param("date_time")String date_time,
    		@Param("place")String place,
  			@Param("kind")String kind,
  			@Param("money_in")String money_in,
  			@Param("money_out")String money_out,
  			@Param("remark")String remark
  			);
   
    public List<Map<String,Object>> queryOne(
    		@Param("user_id")String user_id,
    		                           @Param("id")String id);
    
    public void del(
    		@Param("user_id")String user_id,
    		@Param("id")String id);
}
